export default class SuperRouter {
    constructor(routerlist) {console.log(routerlist);
        this.routerlist = routerlist;
    }
    render(path) {
        console.log(this.routerlist);
        let page = this.routerlist.find(item => item.path === path || item.path === '*');
        document.getElementById('app').innerHTML = `<h1>${page.component}</h1>`
    }
}